package com.zhihuishu.micro.course.model;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 知识点
 * 
 * @Description
 * @author jipeng
 * @date 2015年11月17日 上午9:46:00
 */
@Entity
@Table(name = "KNOWLEDEG_POINT")
public class KnowledgePoint implements Serializable {

    /** @Fields serialVersionUID: */

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ID", unique = true, nullable = false)
    private Integer id;// 主键
    @Column(name = "LESSON_ID")
    private Integer lessonId;// 节id
    @Column(name = "LESSON_VIDEO_ID")
    private Integer lessonVideoId;// 小节id
    @Column(name = "KNOWLEDEG_POINT")
    private String knowledgePoint;// 知识点
    @Column(name = "CHAPTER_ID")
    private Integer chapterId;// 章id
    @Column(name = "COURSE_ID")
    private Integer courseId;// 课程id
    @Column(name = "CREATE_TIME")
    private Date createTime;// 创建时间
    @Column(name = "UPDATE_TIME", insertable = false)
    private Date updateTime;// 更新时间
    @Column(name = "IS_DELETED", insertable = false)
    private Integer isDeleted;// 删除状态 0未删除 1已删除 默认0

    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

   
    public Integer getLessonId() {
        return lessonId;
    }

    public void setLessonId(Integer lessonId) {
        this.lessonId = lessonId;
    }

   
    public Integer getLessonVideoId() {
        return lessonVideoId;
    }

    public void setLessonVideoId(Integer lessonVideoId) {
        this.lessonVideoId = lessonVideoId;
    }
                    
    
    public String getKnowledgePoint() {
        return knowledgePoint;
    }

    public void setKnowledgePoint(String knowledgePoint) {
        this.knowledgePoint = knowledgePoint;
    }

    
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

   
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

   
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    
    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    
    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    @Override
    public String toString() {
        return "KnowledgePoint [id=" + id + ", lessonId=" + lessonId + ", lessonVideoId=" + lessonVideoId
                + ", knowledgePoint=" + knowledgePoint + ", chapterId=" + chapterId + ", courseId="
                + courseId + ", createTime=" + createTime + ", updateTime=" + updateTime + ", isDeleted="
                + isDeleted + "]";
    }
    

}
